//
//  GoodsDetailButtomTableViewCell.m
//  Mahjong
//
//  Created by Chen on 16/9/17.
//  Copyright © 2016年 Elliot. All rights reserved.
//

#import "GoodsDetailButtomTableViewCell.h"

@implementation GoodsDetailButtomTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.otherGoodsBtn.layer.cornerRadius = 5;
    self.otherGoodsBtn.layer.borderWidth = 1;
    self.otherGoodsBtn.layer.borderColor = [UIColor redColor].CGColor;
    self.otherGoodsBtn.clipsToBounds = YES;
}

- (void)setStarCount:(NSInteger)starCount{
    if (starCount == 1) {
        self.starOne.hidden = NO;
        self.starTwo.hidden = YES;
        self.starThree.hidden = YES;
    } else if (starCount == 2) {
        self.starOne.hidden = NO;
        self.starTwo.hidden = NO;
        self.starThree.hidden = YES;
    } else {
        self.starOne.hidden = NO;
        self.starTwo.hidden = NO;
        self.starThree.hidden = NO;
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
